package cn.com.shopec.erp.base.service;

import cn.com.shopec.erp.base.entity.AuditSetting;
import cn.com.shopec.erp.base.vo.AuditSettingVo;
import cn.com.shopec.erp.common.page.PageFinder;
import cn.com.shopec.erp.common.page.PageQuery;

/**
 * @ClassName: IAuditSettingService
 * @Description: 审核金额设置service接口
 * @author: gaoyaxiong
 * @date: 2013-5-26 下午11:14:13
 */
public interface IAuditSettingService {

	/**
	 * 根据用户角色查询审核金额设置
	 * 
	 * @param userRole
	 * @return AuditSettingVo
	 * @throws Exception
	 */
	public AuditSettingVo getAuditSetting(String userRole);

	/**
	 * 分页查询审核金额设置
	 * 
	 * @param AuditSettingVo
	 * @return PageFinder<AuditSettingVo>
	 * @throws Exception
	 */
	public PageFinder<AuditSettingVo> getPageFinderAuditSetting(
			AuditSettingVo AuditSettingVo,PageQuery pageQuery);

	/**
	 * 新增审核金额设置
	 * 
	 * @param AuditSettingPropertyUtils
	 * @return
	 * @throws Exception
	 */
	public String addAuditSetting(AuditSettingVo asVo);

	/**
	 * 修改审核金额设置
	 * 
	 * @param AuditSettingPropertyUtils
	 * @return
	 * @throws Exception
	 */
	public String updateAuditSetting(AuditSettingVo asVo);
	
	/**
	 * 根据id查询信息
	 * @param id
	 * @return
	 */
	public AuditSetting getAuditSettingById(String id);
	
	/**
	 * 根据code修改信息
	 * @param code
	 * @return
	 * @throws Exception 
	 */
	public AuditSetting updateAuditSetting(AuditSetting auditSetting) throws Exception;
	
	/**
	 * 根据角色和金额判断是否审核
	 * @param role
	 * @param amount
	 * @return
	 * gaoyaxiong 2013-6-6
	 */
	boolean checkNeedsAudit(int role, String amount);
}
